import math

from OCC.Core.BRepBuilderAPI import BRepBuilderAPI_MakeEdge, BRepBuilderAPI_MakeWire
from OCC.Core.GC import GC_MakeArcOfCircle
from OCC.Core.gp import gp_Pnt, gp_Ax2d, gp_Circ, gp_Dir, gp_Pnt2d, gp_Dir2d
from OCC.Core.GCE2d import GCE2d_MakeHyperbola
from OCC.Display.SimpleGui import init_display

majorRadius = 5
minorRadius = 1
hyperbola = GCE2d_MakeHyperbola(gp_Ax2d(gp_Pnt2d(0, 0.2), gp_Dir2d(0, 1)), majorRadius, minorRadius, False)

if __name__ == "__main__":
    display, start_display, add_menu, add_function_to_menu = init_display()
    display.DisplayShape(hyperbola.Value(), update=True)
    start_display()
